package Level03_one;

public class Phone {
    //请用代码描述： 小王卖出一部价值 6000 的 iPhone 手
    private String brand;
    private double price;

    void hum(Person person){
        System.out.println(person.getName()+"卖出一部价值"+this.price+"的"+this.brand+"手机");
    }

    public Phone(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
}
